<!-- 前台店长 – 首页 – 打卡 – 统计 – 6		derived -->
<template>
	<view class="warps">
		<u-sticky offset-top="0" v-if="show">
			<!-- 只能有一个根元素 -->
			<view class="sticky ">
				<view class="w90s  ">
					<view class="flexR aic">
						<text class="fs16  flexauto" style="color: #FF7105;">仅保留最近50条导出记录</text>
						<image class="flexnone" @click="delData()" style="width: 20rpx;height: 20rpx;" src="../../../static/img/103.png" mode=""></image>
					</view>	
				</view>
			</view>
		</u-sticky>
		<view class="" v-for="(item,index) in 3" :key="index">
			<view class="notifications-top" @click="a">
				<view class="w90">
					<view class="bold fs32 p_t_31">
						月度汇总
					</view>
					<view class="f hui p_t_31">
						<text class="bold">日期范围：</text>
						<text>2021/05/01 - 2021/05/15</text>
					</view>
					<view class="p_t_20">
						<text class="hui">人员范围：</text>
						<text>全公司</text>
					</view>
					<view class="f b c p_t_40">
						<view>
							<text class="blue bold">导出成功</text>
						</view>
						<view class="vw10 f b c">
							<text class="fs24">查看</text>
							<image style="width: 24rpx;height: 24rpx;" src="../../../static/img/028.png" mode="">
							</image>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				show: true
			}
		},
		onLoad() {
			// 动态导航条文字
			uni.setNavigationBarTitle({
				title: '导出记录'
			})
		},
		methods: {
			delData(res) {
				let that = this
				console.log("删除")
				uni.showModal({
					title: '提示',
					content: "确认删除吗？",
					success: function(res) {
						if (res.confirm) {
							that.show = false
							console.log('用户点击确定');
						} else if (res.cancel) {
							console.log('用户点击取消');
						}
					}
				});
			},
			a(){
				uni.navigateTo({
					url:"../statistical/statistical"
				})
			}
		}
	}
</script>

<style scoped>
	.container {
		height: 100vh;
		margin-top: 0rpx;
	}

	.sticky {
		width: 750rpx;
		height: 66rpx;
		line-height: 66rpx;
		background-color: #ffdcc1;
		text-align: center;
	}

	.warps {
		height: 100vh;
		overflow: hidden;
		background-color: #F6F8FC;
	}

	.notifications-top {
		width: 686rpx;
		height: 312rpx;
		opacity: 1;
		background: #ffffff;
		border-radius: 16rpx;
		box-shadow: 0rpx 0rpx 8rpx 0rpx rgba(0, 0, 0, 0.16);
		margin: 0 auto;
		margin-top: 24rpx;
	}
</style>
